package com.ruoyi.be.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.be.mapper.MedicalCpoeSickroomMapper;
import com.ruoyi.be.domain.MedicalCpoeSickroom;
import com.ruoyi.be.service.IMedicalCpoeSickroomService;

/**
 * 病房记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-01-05
 */
@Service
public class MedicalCpoeSickroomServiceImpl implements IMedicalCpoeSickroomService
{
    @Autowired
    private MedicalCpoeSickroomMapper medicalCpoeSickroomMapper;

    /**
     * 查询病房记录
     * 
     * @param id 病房记录主键
     * @return 病房记录
     */
    @Override
    public MedicalCpoeSickroom selectMedicalCpoeSickroomById(String id)
    {
        return medicalCpoeSickroomMapper.selectMedicalCpoeSickroomById(id);
    }

    @Override
    public MedicalCpoeSickroom selectMedicalCpoeSickroomByname(String name) {
        return medicalCpoeSickroomMapper.selectMedicalCpoeSickroomByname(name);
    }

    @Override
    public List<MedicalCpoeSickroom> selectMedicalCpoeSickroomByareaname(String areaname) {
        return medicalCpoeSickroomMapper.selectMedicalCpoeSickroomByareaname(areaname);
    }

    /**
     * 查询病房记录列表
     * 
     * @param medicalCpoeSickroom 病房记录
     * @return 病房记录
     */
    @Override
    public List<MedicalCpoeSickroom> selectMedicalCpoeSickroomList(MedicalCpoeSickroom medicalCpoeSickroom)
    {
        return medicalCpoeSickroomMapper.selectMedicalCpoeSickroomList(medicalCpoeSickroom);
    }

    @Override
    public List<MedicalCpoeSickroom> selectMedicalCpoeSickroomListBySift() {
        return medicalCpoeSickroomMapper.selectMedicalCpoeSickroomListBySift();
    }

    @Override
    public List<MedicalCpoeSickroom> selectMedicalCpoeSickroomListBySiftName(String areaname) {
        return medicalCpoeSickroomMapper.selectMedicalCpoeSickroomListBySiftName(areaname);
    }

    /**
     * 新增病房记录
     * 
     * @param medicalCpoeSickroom 病房记录
     * @return 结果
     */
    @Override
    public int insertMedicalCpoeSickroom(MedicalCpoeSickroom medicalCpoeSickroom)
    {
        return medicalCpoeSickroomMapper.insertMedicalCpoeSickroom(medicalCpoeSickroom);
    }

    /**
     * 修改病房记录
     * 
     * @param medicalCpoeSickroom 病房记录
     * @return 结果
     */
    @Override
    public int updateMedicalCpoeSickroom(MedicalCpoeSickroom medicalCpoeSickroom)
    {
        return medicalCpoeSickroomMapper.updateMedicalCpoeSickroom(medicalCpoeSickroom);
    }

    /**
     * 批量删除病房记录
     * 
     * @param ids 需要删除的病房记录主键
     * @return 结果
     */
    @Override
    public int deleteMedicalCpoeSickroomByIds(String[] ids)
    {
        return medicalCpoeSickroomMapper.deleteMedicalCpoeSickroomByIds(ids);
    }

    /**
     * 删除病房记录信息
     * 
     * @param id 病房记录主键
     * @return 结果
     */
    @Override
    public int deleteMedicalCpoeSickroomById(String id)
    {
        return medicalCpoeSickroomMapper.deleteMedicalCpoeSickroomById(id);
    }
}
